﻿using Microsoft.EntityFrameworkCore;
using SaaS.Model.Entity.Logs;

namespace Web.System.Utils
{
    public class LoggerDbContext : DbContext
    {
        public LoggerDbContext(DbContextOptions<LoggerDbContext> options) : base(options)
        {
        }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            base.OnConfiguring(optionsBuilder);
        }
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }
        /// <summary>
        /// 错误日志
        /// </summary>
        public DbSet<ErrorLog> ErrorLogs { get; set; }
        /// <summary>
        /// 调度器服务日志
        /// </summary>
        public DbSet<SchedulerLog> SchedulerLogs { get; set; }
        /// <summary>
        /// 追踪日志
        /// </summary>
        public DbSet<TraceLog> TraceLogs { get; set; }
        /// <summary>
        /// 工具API日志
        /// </summary>
        public DbSet<UtilLog> UtilLogs { get; set; }
        /// <summary>
        /// 文件上传日志
        /// </summary>
        public DbSet<FileLog> FileLogs { get; set; }
    }
}
